package org.zhenggn.designpattern.strategy;

/**
 * Created by zhengguinan on 2017/9/14.
 */
public class OldCustomerStrategy implements Strategy {
    public double calcPrice(double goodsPrice) {
        System.out.println("对于老客户，统一折扣5%");
        return goodsPrice*(1-0.05);
    }
}
